import { post, get } from "@/utils/request";

//获取流量价格列表
export function fetchTrafficPriceList(params) {
  return get("/device/bandwidthPrice/list", params);
}

//新增流量价格
export function fetchCreateTrafficPrice(data) {
  return post("/device/bandwidthPrice/save", data);
}

//删除流量价格
export function fetchDeleteTrafficPrice(id) {
  return post(`/device/bandwidthPrice/delete?id=${id}`);
}

//查询流量价格
export function fetchTrafficPrice(id) {
  return get(`/device/bandwidthPrice/query?id=${id}`);
}

//查询流量价格
export function fetchChannelGetList() {
  return get(`/system/channel/getList`);
}
